x86/HVM: assorted RTC emulation adjustments
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Feb 2013 08:44:00 +0000 (09:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Feb 2013 08:44:00 +0000 (09:44 +0100)
commit620d5dad54008e40798c4a0c4322aef274c36fa3
tree395efe24b3207225165ac5ba117fc5c1da5f64ef
parent19014daf9fbd8e9bb3c26cb0fdbb993f82471d5a
x86/HVM: assorted RTC emulation adjustments

- only call check_update_timer() on REG_B writes when SET changes
- only call alarm_timer_update() on REG_B writes when relevant bits
  change
- instead properly handle AF and PF when the guest is not also setting
  AIE/PIE respectively (for UF this was already the case, only a
  comment was slightly inaccurate), including calling the respective
  update functions upon REG_C reads

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Olaf Hering <olaf@aepfle.de>
xen/arch/x86/hvm/rtc.c
xen/arch/x86/hvm/vpt.c
xen/include/asm-x86/hvm/vpt.h